package com.situ.company.web220111.department.service;

import com.situ.company.web220111.department.model.DepartmentModel;
import com.situ.company.web220111.employee.model.EmployeeModel;

import java.util.List;

// 接口 ： 制定标准+统一规范
// 返回类型 = String int Integer Department list
public interface IDepartmentService {

    /**
     * 添加记录
     *
     * @param model
     * @return String
     */
    String insert(DepartmentModel model);

    String delete(DepartmentModel model);

    /**
     * 根据主键修改字段
     *
     * @param model
     * @return String
     */
    String updateAll(DepartmentModel model);

    /**
     * 根据主键修改部分字段
     *
     * @param model
     * @return
     */
    String updateActive(DepartmentModel model);

    /**
     * 根据多条件模糊查询记录
     *
     * @param model
     * @return List<DepartmentModel>
     */
    List<DepartmentModel> selectList(DepartmentModel model);

    /**
     * 根据主键查询一条记录
     *
     * @param model
     * @return DepartmentModel
     */
    DepartmentModel selectModel(DepartmentModel model);

    /**
     * 分页计数功能
     * @param model
     * @return
     */
    Integer selectCount(DepartmentModel model);
}

